package com.hanxiaozhang.system.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import java.util.List;
import java.util.Map;

import com.hanxiaozhang.system.dao.UserRoleDao;
import com.hanxiaozhang.system.entity.UserRoleEntity;
import com.hanxiaozhang.system.service.UserRoleService;


/**
 * 用户角色关联表
 *
 * @author hanxiaozhang
 * @email hanxiaozhang2018@sina.com
 * @date 2021-04-01
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

	@Resource
	private UserRoleDao userRoleDao;
	
	@Override
	public UserRoleEntity get(Long userRoleId){
		return userRoleDao.get(userRoleId);
	}
	
	@Override
	public List<UserRoleEntity> list(Map<String, Object> map){
		return userRoleDao.list(map);
	}
	
	@Override
	public int save(UserRoleEntity userRole){
		return userRoleDao.save(userRole);
	}
	
	@Override
	public int update(UserRoleEntity userRole){
		return userRoleDao.update(userRole);
	}

}
